/* required styles */

.aimap-pane,
.aimap-tile,
.aimap-marker-icon,
.aimap-marker-shadow,
.aimap-tile-container,
.aimap-pane > svg,
.aimap-pane > canvas,
.aimap-zoom-box,
.aimap-image-layer,
.aimap-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.aimap-container {
	overflow: hidden;
	}
.aimap-tile,
.aimap-marker-icon,
.aimap-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.aimap-safari .aimap-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.aimap-safari .aimap-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.aimap-marker-icon,
.aimap-marker-shadow {
	display: block;
	}
/* .aimap-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .aimap-container img: map is broken in FF if you have max-width: 100% on tiles */
.aimap-container .aimap-overlay-pane svg,
.aimap-container .aimap-marker-pane img,
.aimap-container .aimap-shadow-pane img,
.aimap-container .aimap-tile-pane img,
.aimap-container img.aimap-image-layer {
	max-width: none !important;
	}

.aimap-container.aimap-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.aimap-container.aimap-touch-drag {
	-ms-touch-action: pinch-zoom;
	}
.aimap-container.aimap-touch-drag.aimap-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.aimap-tile {
	filter: inherit;
	visibility: hidden;
	}
.aimap-tile-loaded {
	visibility: inherit;
	}
.aimap-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.aimap-overlay-pane svg {
	-moz-user-select: none;
	}

.aimap-pane         { z-index: 400; }

.aimap-tile-pane    { z-index: 200; }
.aimap-overlay-pane { z-index: 400; }
.aimap-shadow-pane  { z-index: 500; }
.aimap-marker-pane  { z-index: 600; }
.aimap-tooltip-pane   { z-index: 650; }
.aimap-popup-pane   { z-index: 700; }

.aimap-map-pane canvas { z-index: 100; }
.aimap-map-pane svg    { z-index: 200; }

.aimap-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.aimap-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.aimap-top,
.aimap-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.aimap-top {
	top: 50px;
	}
.aimap-right {
	right: 0;
	}
.aimap-bottom {
	bottom: 0;
	}
.aimap-left {
	left: 0;
	}
.aimap-control {
	float: left;
	clear: both;
	}
.aimap-right .aimap-control {
	float: right;
	}
.aimap-top .aimap-control {
	margin-top: 10px;
	}
.aimap-bottom .aimap-control {
	margin-bottom: 10px;
	}
.aimap-left .aimap-control {
	margin-left: 10px;
	}
.aimap-right .aimap-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.aimap-fade-anim .aimap-tile {
	will-change: opacity;
	}
.aimap-fade-anim .aimap-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	     -o-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.aimap-fade-anim .aimap-map-pane .aimap-popup {
	opacity: 1;
	}
.aimap-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
.aimap-zoom-anim .aimap-zoom-animated {
	will-change: transform;
	}
.aimap-zoom-anim .aimap-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	     -o-transition:      -o-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.aimap-zoom-anim .aimap-tile,
.aimap-pan-anim .aimap-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	     -o-transition: none;
	        transition: none;
	}

.aimap-zoom-anim .aimap-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.aimap-interactive {
	cursor: pointer;
	}
.aimap-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	}
.aimap-crosshair,
.aimap-crosshair .aimap-interactive {
	cursor: crosshair;
	}
.aimap-popup-pane,
.aimap-control {
	cursor: auto;
	}
.aimap-dragging .aimap-grab,
.aimap-dragging .aimap-grab .aimap-interactive,
.aimap-dragging .aimap-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	}

/* marker & overlays interactivity */
.aimap-marker-icon,
.aimap-marker-shadow,
.aimap-image-layer,
.aimap-pane > svg path,
.aimap-tile-container {
	pointer-events: none;
	}

.aimap-marker-icon.aimap-interactive,
.aimap-image-layer.aimap-interactive,
.aimap-pane > svg path.aimap-interactive {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.aimap-container {
	background: #ddd;
	outline: 0;
	}
.aimap-container a {
	color: #0078A8;
	}
.aimap-container a.aimap-active {
	outline: 2px solid orange;
	}
.aimap-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.aimap-container {
	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
	}


/* general toolbar styles */

.aimap-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.aimap-bar a,
.aimap-bar a:hover {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.aimap-bar a,
.aimap-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.aimap-bar a:hover {
	background-color: #f4f4f4;
	}
.aimap-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.aimap-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.aimap-bar a.aimap-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.aimap-touch .aimap-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}


/* zoom control */

.aimap-control-zoom-in,
.aimap-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}
.aimap-control-zoom-out {
	font-size: 20px;
	}

.aimap-touch .aimap-control-zoom-in {
	font-size: 22px;
	}
.aimap-touch .aimap-control-zoom-out {
	font-size: 24px;
	}


/* layers control */

.aimap-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.aimap-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.aimap-retina .aimap-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.aimap-touch .aimap-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.aimap-control-layers .aimap-control-layers-list,
.aimap-control-layers-expanded .aimap-control-layers-toggle {
	display: none;
	}
.aimap-control-layers-expanded .aimap-control-layers-list {
	display: block;
	position: relative;
	}
.aimap-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.aimap-control-layers-scrollbar {
	overflow-y: scroll;
	padding-right: 5px;
	}
.aimap-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.aimap-control-layers label {
	display: block;
	}
.aimap-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.aimap-default-icon-path {
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.aimap-container .aimap-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.7);
	margin: 0;
	}
.aimap-control-attribution,
.aimap-control-scale-line {
	padding: 0 5px;
	color: #333;
	}
.aimap-control-attribution a {
	text-decoration: none;
	}
.aimap-control-attribution a:hover {
	text-decoration: underline;
	}
.aimap-container .aimap-control-attribution,
.aimap-container .aimap-control-scale {
	font-size: 11px;
	}
.aimap-left .aimap-control-scale {
	margin-left: 5px;
	}
.aimap-bottom .aimap-control-scale {
	margin-bottom: 5px;
	}
.aimap-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;

	background: #fff;
	background: rgba(255, 255, 255, 0.5);
	}
.aimap-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.aimap-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.aimap-touch .aimap-control-attribution,
.aimap-touch .aimap-control-layers,
.aimap-touch .aimap-bar {
	box-shadow: none;
	}
.aimap-touch .aimap-control-layers,
.aimap-touch .aimap-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.aimap-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.aimap-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.aimap-popup-content {
	margin: 13px 19px;
	line-height: 1.4;
	}
.aimap-popup-content p {
	margin: 18px 0;
	}
.aimap-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.aimap-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	     -o-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.aimap-popup-content-wrapper,
.aimap-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.aimap-container a.aimap-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 4px 0 0;
	border: none;
	text-align: center;
	width: 18px;
	height: 14px;
	font: 16px/14px Tahoma, Verdana, sans-serif;
	color: #c3c3c3;
	text-decoration: none;
	font-weight: bold;
	background: transparent;
	}
.aimap-container a.aimap-popup-close-button:hover {
	color: #999;
	}
.aimap-popup-scrolled {
	overflow: auto;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
	}

.aimap-oldie .aimap-popup-content-wrapper {
	zoom: 1;
	}
.aimap-oldie .aimap-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}
.aimap-oldie .aimap-popup-tip-container {
	margin-top: -1px;
	}

.aimap-oldie .aimap-control-zoom,
.aimap-oldie .aimap-control-layers,
.aimap-oldie .aimap-popup-content-wrapper,
.aimap-oldie .aimap-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.aimap-div-icon {
	/*background: #fff;
	border: 1px solid #666;*/
	}
.aimap-marker-draggable, .aimap-editing-icon {
	background: #fff;
	border: 1px solid #666;
}

/* Tooltip */
/* Base styles for the element that has a tooltip */
.aimap-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.aimap-tooltip.aimap-clickable {
	cursor: pointer;
	pointer-events: auto;
	}
.aimap-tooltip-top:before,
.aimap-tooltip-bottom:before,
.aimap-tooltip-left:before,
.aimap-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.aimap-tooltip-bottom {
	margin-top: 6px;
}
.aimap-tooltip-top {
	margin-top: -6px;
}
.aimap-tooltip-bottom:before,
.aimap-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.aimap-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.aimap-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.aimap-tooltip-left {
	margin-left: -6px;
}
.aimap-tooltip-right {
	margin-left: 6px;
}
.aimap-tooltip-left:before,
.aimap-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.aimap-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.aimap-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}
/* ================================================================== */
/* Toolbars
/* ================================================================== */

.aimap-draw-section {
	position: relative;
}

.aimap-draw-toolbar {
	margin-top: 12px;
}

.aimap-draw-toolbar-top {
	margin-top: 0;
}

.aimap-draw-toolbar-notop a:first-child {
	border-top-right-radius: 0;
}

.aimap-draw-toolbar-nobottom a:last-child {
	border-bottom-right-radius: 0;
}

.aimap-draw-toolbar a {
	background-image: url('images/spritesheet.png');
	background-image: linear-gradient(transparent, transparent), url('images/spritesheet.svg');
	background-repeat: no-repeat;
	background-size: 300px 30px;
	background-clip: padding-box;
}

.aimap-retina .aimap-draw-toolbar a {
	background-image: url('images/spritesheet-2x.png');
	background-image: linear-gradient(transparent, transparent), url('images/spritesheet.svg');
}

.aimap-draw a {
	display: block;
	text-align: center;
	text-decoration: none;
}

.aimap-draw a .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ================================================================== */
/* Toolbar actions menu
/* ================================================================== */

.aimap-draw-actions {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	left: 26px; /* aimap-draw-toolbar.left + aimap-draw-toolbar.width */
	top: 0;
	white-space: nowrap;
}

.aimap-touch .aimap-draw-actions {
	left: 32px;
}

.aimap-right .aimap-draw-actions {
	right: 26px;
	left: auto;
}

.aimap-touch .aimap-right .aimap-draw-actions {
	right: 32px;
	left: auto;
}

.aimap-draw-actions li {
	display: inline-block;
}

.aimap-draw-actions li:first-child a {
	border-left: none;
}

.aimap-draw-actions li:last-child a {
	-webkit-border-radius: 0 4px 4px 0;
	border-radius: 0 4px 4px 0;
}

.aimap-right .aimap-draw-actions li:last-child a {
	-webkit-border-radius: 0;
	border-radius: 0;
}

.aimap-right .aimap-draw-actions li:first-child a {
	-webkit-border-radius: 4px 0 0 4px;
	border-radius: 4px 0 0 4px;
}

.aimap-draw-actions a {
	background-color: #919187;
	border-left: 1px solid #AAA;
	color: #FFF;
	font: 11px/19px "Helvetica Neue", Arial, Helvetica, sans-serif;
	line-height: 28px;
	text-decoration: none;
	padding-left: 10px;
	padding-right: 10px;
	height: 28px;
}

.aimap-touch .aimap-draw-actions a {
	font-size: 12px;
	line-height: 30px;
	height: 30px;
}

.aimap-draw-actions-bottom {
	margin-top: 0;
}

.aimap-draw-actions-top {
	margin-top: 1px;
}

.aimap-draw-actions-top a,
.aimap-draw-actions-bottom a {
	height: 27px;
	line-height: 27px;
}

.aimap-draw-actions a:hover {
	background-color: #A0A098;
}

.aimap-draw-actions-top.aimap-draw-actions-bottom a {
	height: 26px;
	line-height: 26px;
}

/* ================================================================== */
/* Draw toolbar
/* ================================================================== */

.aimap-draw-toolbar .aimap-draw-draw-polyline {
	background-position: -2px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-polyline {
	background-position: 0 -1px;
}

.aimap-draw-toolbar .aimap-draw-draw-polygon {
	background-position: -31px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-polygon {
	background-position: -29px -1px;
}

.aimap-draw-toolbar .aimap-draw-draw-rectangle {
	background-position: -62px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-rectangle {
	background-position: -60px -1px;
}

.aimap-draw-toolbar .aimap-draw-draw-circle {
	background-position: -92px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-circle {
	background-position: -90px -1px;
}

.aimap-draw-toolbar .aimap-draw-draw-marker {
	background-position: -122px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-marker {
	background-position: -120px -1px;
}

.aimap-draw-toolbar .aimap-draw-draw-circlemarker {
	background-position: -273px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-draw-circlemarker {
	background-position: -271px -1px;
}

/* ================================================================== */
/* Edit toolbar
/* ================================================================== */

.aimap-draw-toolbar .aimap-draw-edit-edit {
	background-position: -152px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-edit-edit {
	background-position: -150px -1px;
}

.aimap-draw-toolbar .aimap-draw-edit-remove {
	background-position: -182px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-edit-remove {
	background-position: -180px -1px;
}

.aimap-draw-toolbar .aimap-draw-edit-edit.aimap-disabled {
	background-position: -212px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-edit-edit.aimap-disabled {
	background-position: -210px -1px;
}

.aimap-draw-toolbar .aimap-draw-edit-remove.aimap-disabled {
	background-position: -242px -2px;
}

.aimap-touch .aimap-draw-toolbar .aimap-draw-edit-remove.aimap-disabled {
	background-position: -240px -2px;
}

/* ================================================================== */
/* Drawing styles
/* ================================================================== */

.aimap-mouse-marker {
	background-color: #fff;
	cursor: crosshair;
}

.aimap-draw-tooltip {
	background: rgb(54, 54, 54);
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid transparent;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	font: 12px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
	margin-left: 20px;
	margin-top: -21px;
	padding: 4px 8px;
	position: absolute;
	visibility: hidden;
	white-space: nowrap;
	z-index: 6;
}

.aimap-draw-tooltip:before {
	border-right: 6px solid black;
	border-right-color: rgba(0, 0, 0, 0.5);
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	content: "";
	position: absolute;
	top: 7px;
	left: -7px;
}

.aimap-error-draw-tooltip {
	background-color: #F2DEDE;
	border: 1px solid #E6B6BD;
	color: #B94A48;
}

.aimap-error-draw-tooltip:before {
	border-right-color: #E6B6BD;
}

.aimap-draw-tooltip-single {
	margin-top: -12px
}

.aimap-draw-tooltip-subtext {
	color: #f8d5e4;
}

.aimap-draw-guide-dash {
	font-size: 1%;
	opacity: 0.6;
	position: absolute;
	width: 5px;
	height: 5px;
}

/* ================================================================== */
/* Edit styles
/* ================================================================== */

.aimap-edit-marker-selected {
	background-color: rgba(254, 87, 161, 0.1);
	border: 4px dashed rgba(254, 87, 161, 0.6);
	-webkit-border-radius: 4px;
	border-radius: 4px;
	box-sizing: content-box;
}

.aimap-edit-move {
	cursor: move;
}

.aimap-edit-resize {
	cursor: pointer;
}

/* ================================================================== */
/* Old IE styles
/* ================================================================== */

.aimap-oldie .aimap-draw-toolbar {
	border: 1px solid #999;
}
